package com.xzm.service.impl;

/**
 * @author 3052
 * @create 2020-07-26 21:00
 */

import com.xzm.service.IUserService;

public class UserServiceImpl implements IUserService {
    //IUserDao user = new UserDaoImpl();
    //IUserDao user = (IUserDao) BeanFactory.getBean("userDao");

/*    public UserServiceImpl(String name){
        System.out.println(name+"用户创建了！");
    }*/
    public UserServiceImpl(){
        System.out.println("用户创建了！");
    }
    private int i=0;
    public void saveUser() {
        System.out.println("用户得到保存！");
    }

    public void init(){
        System.out.println("对象初始化。");
    }

    public void destroy(){
        System.out.println("对象破灭。");
    }
}
